package com.lottery.material.entity.promotion;

import com.lottery.material.entity.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * Description：推广规则配置表
 * Created by 朱正磊 on 2019-04-09 10:34
 */
@Entity
@Data
@EqualsAndHashCode(callSuper = false)
@Table(name = "material_promotion_rule_config")
public class PromotionRuleConfig extends BaseEntity {

    private static final long serialVersionUID = 1318457218825542280L;

    @Column(columnDefinition = "int(1) comment '推广类型（1：圈子内文章推广；2：群聊内文章推广）'")
    private Integer promotionType;

    @Column(columnDefinition = "int(10) comment '推广时长（秒）'")
    private Integer promotionDuration;

    @Column(columnDefinition = "int(10) comment '推广文章篇数限制'")
    private Integer promotionLimit;

    @Column(columnDefinition = "text comment '推广规则描述'")
    private String promotionDesc;

    @Column(columnDefinition = "int(1) not null default '1' comment '是否删除（1：否；2：是）'")
    private Integer isDelete;

}
